package com.rms.service.impl;

import java.util.List;

import com.rms.dao.IOrderDetailDao;
import com.rms.entity.OrderDetail;

import com.rms.service.IOrderDetailService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;


@Service
public class OrderDetailService implements IOrderDetailService{


	@Resource
	IOrderDetailDao orderDetailDao;

	@Override
	public void add(OrderDetail od) {
		orderDetailDao.add(od);
	}

	@Override
	public List<OrderDetail> query() {
		return orderDetailDao.query();
	}
	@Override
	public List<OrderDetail> findByOrderId(int id) {
		return orderDetailDao.findByOrderid(id);
	}
}
